Skip to main content

Generate Quiz

POST Generate Quiz

Method: POST

URL: https://ai-service.oriens.my.id/api/v1/quiz/generate

Description

This is a GET request and it is used to "get" data from an endpoint. There is no request body for a GET request, but you can use query parameters to help specify the resource you want data on (e.g., in this request, we have id=1).

A successful GET response will have a 200 OK status, and should include some kind of response body - for example, HTML web content or JSON data.

Request Body (Json)

 {
"total_soal": 5,
// "type_soal": "descriptive",
"type_soal": "multiple",
"material_ids": ["343"],
"quiz_id": 65,
"user_id": 995,
"topics": ["hipertensi", "poster"],
// "topics": ["riwayat budi", "tahun lahir budi", "keluarga budi"],
"difficulty": ["hard"], // Easy, Medium, Hard
"show_quiz": true // (Opsional)
}